import Request from './request'

const url = '/api/auth/customers'
export default {
  appendCustomer (cid) {
    return Request.post(url, {cid})
  },
  deleteCustomer (cid) {
    return Request.del(url, {cid})
  },
  appendCustomerInst (building, floor, cid) {
    return Request.post(url + '/instance', {b: building, f: floor, cid})
  },
  deleteCustomerInst (building, floor, _id) {
    return Request.del(url + '/instance', {b: building, f: floor, _id})
  }
}